package trie;


public class TrieTest {
    public static void main(String[] args) {
        Trie trie = new Trie();
        trie.add("lidongkui");
        trie.add("lihan");
        trie.add("liwang");
        trie.add("deer");
        System.out.println(trie.contains("lidongkui"));
        System.out.println(trie.isPrefix("lidongkui"));
        System.out.println(trie.match("d..r"));

    }
}
